﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Xml.Linq;
using static Modules.Person.PersonConstants;

namespace ManagementApi.Models.Manage.ProjectGroup
{
    /// <summary>
    /// 班组表单信息
    /// </summary>
    public class ProjectGroupEditForm
    {
        /// <summary>
        /// 班组ID
        ///</summary>
        [Display(Name = "班组ID")]
        public int GroupId { get; set; }

        /// <summary>
        /// 项目ID
        ///</summary>
        [Display(Name = "项目ID")]
        public int? ProjectId { get; set; }

        /// <summary>
        /// 项目名称
        ///</summary>
        [Display(Name = "项目名称")]
        public string? ProjectName { get; set; }

        /// <summary>
        /// 企业id
        ///</summary>
        [Display(Name = "企业id")]
        [Required(ErrorMessage = "{0}不能为空")]
        public int? CorpId { get; set; }

        /// <summary>
        /// 企业名称
        ///</summary>
        [Display(Name = "企业名称")]
        public string? CorpName { get; set; }

        /// <summary>
        /// 班组名称
        ///</summary>
        [Display(Name = "班组名称")]
        [Required(ErrorMessage = "{0}不能为空")]
        public string? Name { get; set; }

        /// <summary>
        /// 进场日期
        /// </summary>
        [Display(Name = "进场日期")]
        [Required(ErrorMessage = "{0}不能为空")]
        public DateTime? StartDate { get; set; }

        /// <summary>
        /// 出场日期
        /// </summary>
        [Display(Name = "出场日期")]
        [Required(ErrorMessage = "{0}不能为空")]
        public DateTime? EndDate { get; set; }
    }
}